/*  1:   */ package com.rinsi.util;
/*  2:   */ 
/*  3:   */ import java.util.Enumeration;
/*  4:   */ import java.util.Properties;
/*  5:   */ import org.springframework.beans.BeansException;
/*  6:   */ import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;
/*  7:   */ import org.springframework.beans.factory.config.PropertyPlaceholderConfigurer;
/*  8:   */ 
/*  9:   */ public class SpringCodePropertiesUtil
/* 10:   */   extends PropertyPlaceholderConfigurer
/* 11:   */ {
/* 12:   */   protected void processProperties(ConfigurableListableBeanFactory beanFactory, Properties props)
/* 13:   */     throws BeansException
/* 14:   */   {
/* 15:22 */     Enumeration<Object> en = props.keys();
/* 16:24 */     while (en.hasMoreElements())
/* 17:   */     {
/* 18:26 */       String key = en.nextElement().toString();
/* 19:   */       
/* 20:28 */       String value = props.getProperty(key);
/* 21:   */       try
/* 22:   */       {
/* 23:32 */         String decodeValue = CodeUtil.decode(props.getProperty(key));
/* 24:   */         
/* 25:34 */         props.setProperty(key, decodeValue);
/* 26:   */       }
/* 27:   */       catch (Exception ex)
/* 28:   */       {
/* 29:38 */         props.setProperty(key, value);
/* 30:   */       }
/* 31:   */     }
/* 32:43 */     super.processProperties(beanFactory, props);
/* 33:   */   }
/* 34:   */ }


/* Location:           D:\Users\Desktop\shanxi\项目\sxazmis\WEB-INF\classes\
 * Qualified Name:     com.rinsi.util.SpringCodePropertiesUtil
 * JD-Core Version:    0.7.0.1
 */